import React, { Component } from 'react'
import { bindActionCreators } from 'redux'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import * as Actions from '../../actions/order'
import utils from '../../utils'
import Container from '../../components/Container'

class OrderPay extends Component{
  static contextTypes={
    router:PropTypes.object.isRequired,
  }
  constructor(props) {
    super(props);
    this.state = {
      
    }
  }
  componentDidMount(){
    let {actions} =this.props 
    actions.ppPay({
      total_amount:1,
      currency_type:'USD'
    })
  }

  

  render(){
  	let {orderList} = this.props
    return(
        <Container >
         <div></div>
        </Container>
    )
  }
 
}
function mapStateToProps(state){
  return{ 
    orderList:state.orderList.toJS()
  }
}
function mapDispatchToProps(dispatch){
  return{
    actions:bindActionCreators(Actions,dispatch)
  }
}
export default connect(
  mapStateToProps,
  mapDispatchToProps
)(OrderPay)


